package com.example.mybatis;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Date 2022/1/19
 * @Created by Jonathan
 */
public class MybatisMain {
	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);
		UserServiceImpl bean = context.getBean(UserServiceImpl.class);
		bean.register();
	}
}
